package com.lianboke.link.ad.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.lianboke.link.ad.utils.KLog;

/**
 * 下载接收器
 * Created by admin on 2017/12/13.
 */

public class DownLoadBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        try {
            if (intent != null) {
                KLog.e("--------DownLoadBroadcastReceiver----------:"+intent.getAction());
                Intent intentDownload = new Intent();
                intentDownload.setAction("android.myapp.download.downloadmy");
                intentDownload.putExtra("data", intent.getAction());
                context.sendBroadcast(intentDownload);
            }
        } catch (Exception e) {
            KLog.e("device_tag", "-----net work type  action----Exception---:" + e.getMessage());
        }
    }
}
